<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/11/16
 * Time: 3:26 PM
 */


ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Biz\service\Event;
use Biz\module\Decoupling\order\PayOrder as dePayOrder;

Event::consume(Event::ORDER_PAY_SUCCESS, function ($message,$eventTag,$queueName) {
    switch ($eventTag){
        case Event::ORDER_PAY_SUCCESS:
            new dePayOrder($message,$queueName);
            break;
    }

},'php.biz.cli.payorder');